import { CreateTopoRuleParam, DeleteTopoRuleParam, TopoRule } from './model/topoRuleModel'

import { defHttp } from '/@/utils/http/axios'

export const getTopoRuleList = (params: any) =>
  defHttp.get<TopoRule[]>({ url: '/topo_rule/list', params })

export const createTopoRule = (params: any) =>
  defHttp.post<CreateTopoRuleParam>({ url: '/topo_rule/create', params })

export const deleteTopoRule = (params: any) =>
  defHttp.post<DeleteTopoRuleParam>({ url: '/topo_rule/delete', params })
